Create counting submissions code for every category