public static long getQueryCount(Type type) {
        return switch (type) {
            case select -> selectCount;
            case update -> updateCount;
            case insert -> insertCount;
            case delete -> deleteCount;
        };
    }
Returns the total number database queries of a particular type performed.
Valid types are ProfiledConnection.SELECT, ProfiledConnection.UPDATE,
ProfiledConnection.INSERT, and ProfiledConnection.DELETE.

@param type the type of query to get the count for.
@return the number queries of type {@code type} performed.
xmppserver/src/main/java/org/jivesoftware/database/ProfiledConnection.java