Fix Relation#count deprecation warning
Merge pull request #74 from zoombody/count-deprecation

Fix Relation#count deprecation warning