Fixes #194 by providing a count query. Yay