change count() to count(:all) for rails 4.1

I see rails 4.1 only work using count(:all) https://github.com/rails/rails/issues/13648#issuecomment-39352347