Added print statement to report number of patterns observed