I currently have a code in C# that counts for the occurrence of a single pattern
MatchCollection collection = Regex.Matches(readedLine, @"work=R");
countedChars = collection.Count;
What to do when I need to find or match a multiple set of string or pattern in a line. For example
if "work=R", "product=X" and "function=V" are all found in one line, then it will have 1 count automatically, otherwise, or if one of them does not match, it will not be counted.