You can buy this project and download/modify it how often you want.
Files of the artifact usergrid-count-common version 0.0.14 from the group org.usergrid.