I need help with a formula that counts 3 consecutive values. However, these values are not numbers. They are letters and are organized across rows, not down columns (ex: one dataset is in C7:BZ7). Each letter is in its own cell. I need to count every occurrence in which "c" appears 3 times consecutively. I need each occurrence of this to output a value of 1. For example, for sdjccoicocccoiccciojc, the output value would be 2, For sdlfkkcccccclkdfklccc, the output values would be 3. I have been attempting for days using sum, countif, and frequency functions, but cannot figure it out. If it would be easier to replace every "c" with a number like "1", I am willing to do so, if someone can PLEASE help me with a formula that works.

Thank you so much for even taking the time to read my question!