Fix some issues

Key-value position for "count" parameter.

Offered fix bug when searching for hashtag written non-Latin characters (eg Cyrillic #сочи2014 search results in an error). 

I apologize in advance for what I might have done something not quite right, because I am a beginner in this business. But this code does bug fixes.