I'm not sure what you mean, @danberindei. The foundCount will be the number of times the pattern is found in the value based on the "while(matcher.find()).." loop above.