Call count query

Fixes #5