Change event listener counter type to unsigned int
Add const modifier to event dispatcher methods