Added docu of count_patterns