added temporary event counter for debugging