simple module to count events