support for distinct count
Merge pull request #429 from subvertallchris/master

support for distinct count