fix pg_search bug by changing .count to .count(:all)