Use count(:all) in specs

Due to Rails pull request #10710, count without a parameter and empty? don't work with a pg_search relation.

https://github.com/rails/rails/pull/10710