static int CountNumberOfEntries(string content, Regex matcher) { return matcher.Matches(content).Count; } }