M M F F F M F F M M M M
The above is a series containing 5 runs.
Let n1 be the number of symbols associated with the category that occurs the least and n2 be the number that belongs to the other category. Then the sample size is n= n1 + n2.
Also please see