This function counts the number of occurrences in the dataset of a qualifier sequence or pattern which is given in the search criteria
Basic format: ["count_qualifier_patterns", "row_name", [{q1_cat: q1_name}, {q2_cat: q2_name}] , "start_time", "end_time" ]
In the following example, we want to know how many passes Rex has made. Instead of a clip > qualifier > attribute hierarchy we sometimes get a dataset which coded a qualifier pattern and in this case it is a player qualifier followed by their action qualifier within the possession clip.
e.g: ["count_qualifier_patterns", "Possession", [{"Player": "Rex"}, {"Action": "Pass"}]
Order matters here! The quality of the report is reliant on the quality of data it uses. If, in this example, our coder did not follow the rules of the coding pattern, 'player > action', and mistakenly coded 'action > player' this will not be picked up by this pattern search. It is always valuable to check the coding before processing it for reporting.
You can also define a start and end time which is also useful with the min_time_start and max_time_end functions - ensure you define the timing variables before you use them in this function.