fix counts.
Fix tests.
Merge pull request #178 from amida-tech/counts-fix

Counts fix