finsihed first part of part 2, working on counting events