finished patterncount