add count helper method ##
Merge branch 'master' of github.com:affinitic/affinitic.db