Added new function and handler for counting user tickets for display