Add count functionality

Addionally enforce category in every server request