Replace deprecated @count and @weight variables with their equivalent functions.

Sphinx revision r2703 (https://code.google.com/p/sphinxsearch/source/detail?r=2703) added new SQL-like functions to replace internal variables like @count and @weight. Thinking Sphinx is using the @count variable when generating facet queries, which raises a deprecation error.