I have a group of employees and need to find a way to count the number of times an employee works greater than 5 days a row. Shifts are indicated by a different letter (H, P, Y, X) given the start time. I have attached a Google Sheet with the examples. Different combos of shifts do not matter, as long as over 5 days in a row are worked. I've tried some IF statements and some Arrays, but not very good at this coding thing. The actual Google Sheet will be much more expansive than this sample one, with the pay periods from last year, and will continue for the foreseeable future. Please help.
Below is a Google Sheets link for the example: