Script to count kinds of plays (needed within main.js)