default long countTickets() {
        return stream().count();
    }
Count all tickets.

@return the total count.
api/cas-server-core-api-ticket/src/main/java/org/apereo/cas/ticket/registry/TicketRegistry.java