Family Problem

Probability
Probability puzzles require you to weigh all the possibilities and pick the most likely outcome.

The relatively unknown Mbwatzeze Tribe had a rather strange law restricting the size of families. Each married couple was expected to continue having children until they had EITHER one child of each sex OR a total of four children.

What was the average (mean) number of children born to each couple? (Assume that they kept to the law and that each couple had the maximum permitted by the law.)