Complete app/count.js - pretty neat implementation