Function counting user created event