Interview count control

Good day,
With my questionnaire, Inside an enumeration area, moving from household to household, i would like to have a boolean variable to identify, let’s say, the tenth household to respond Yes to a certain question for the same questionnaire assignment. Is it possible to achieve such?