Count Complete SubstringsCount substrings satisfying exact character frequencies and adjacent-character limits.