This is my first time here, so I apologize for error in format when posting right, but I will do my best to describe my problem

Say I have a list:

A.
1. X
2. O
3. O
4. X
5. O
6. X
7. X
8. X
9. O

I need to Count how many X's and how many O's are in this list. However, I need to count this from say rows 1 to 3 and 6 to 9. This count also needs to be dynamic, so one week I can make it count from 1 to 4 and 8 to 9, or whatever.

So far, I've tried using Countif with Offset to make it Dynamic, but it doesn't completely get the right answers, so I'm stuck. I'll be even willing to settle on having the adjacent column pop out a reference number like A to represent rows 1-3, 6-9, and B for 4-5. As long as it is dynamic, also meaning that the list can change from 9 numbers to 11 to 5, etc...

Thank You if anyone takes this challenge. I will be filled with gratitude.
-Oleg