Fix count method to work with select statement for Rails 4.1
Merge pull request #31 from mitchej123/fix-count-on-rails-4-1

Fix count method to work with select statement for Rails 4.1