How to count of sub-string occurrences? [duplicate] January 27, 2023 by Tarik Regex.Matches(input, "OU=").Count