title: Pig throws error for simple Group by and count occurrence task
body: <p>Using Hadoop's PIG-Latin to find the number of occurrences of unique search strings from a search engine log file.(<a href="https://www.evernote.com/shard/s308/sh/09e9e3d2-074f-42e3-8b23-0ded7550c530/caa7d12a88c47c6d66d3fa08d9b2d18c" rel="nofollow">click here to view  the sample log file</a>)
  Please help me out. Thanks in advance.</p>
  
  <p>Pig script</p>
  
  <pre><code>excitelog = load '/user/hadoop/input/excite-small.log' using PigStorage() AS
  (encryptcode:chararray, numericid:int, searchstring:chararray);                                        
  
  GroupBySearchString = GROUP excitelog by searchstring;    
  
  searchStrFrq = foreach GroupBySearchString Generate group as searchstring,count(searchstring);
  </code></pre>
  
  <p>Error encountered</p>
  
  <pre><code> [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve count using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.]
  </code></pre>