api for ticket status stats