change count() to count(:all)