add helper method to make event count available for all templates
refactor tests, down to 6 failures