countPatternRows function

Check for Pattern Rows