I have a big data.frame. I have to count how many times a word ending with _xxsgt occurs, column by column.
  Col1             Col2  
  a               54_xxsgt   
  123_xxsgt       e     
  d               f  
  429_s_xxsgt     g 
Desired output:
Col1: 2  (123_xxsgt and 429_s_xxsgt occur)
Col2: 1  (54_xxsgt occur)
....
 
     
     
    