Check the count of continues letter from a string

Can you show me exact code using Regex to take number of continues
letter ‘o’ from “goooglogic”?

Already we know, ‘goooglogic’.count(‘o’) will show 5.

Now I expecting the result (continues letter) is 3 from that string.

‘oogoooglogic’.scan(/o+/).max.length #=> 3