added the ability to specify a count to the events query
added the ability to specify a count to the events query