Simple event counter for building analytics tools.