Fixed unique count for Rails 4
Check for version 4 instead of 3
Merge pull request #106 from Linuus/master

Count unique records in Rails 4