public int numWildcards() {
        int numWildcards = 0;
        if (WILDCARD.equals(type())) {
            numWildcards++;
        }
        if (WILDCARD.equals(subtype())) {
            numWildcards++;
        }
        return numWildcards;
    }
Returns the number of wildcards of this {@link MediaType}.
core/src/main/java/com/linecorp/armeria/common/MediaType.java