Counting nodes based on a select1 value in a repeat group

I am trying to count nodes in a repeat group mainly comprised of a select1,
here is the code snippet.

Father Father Mother Mother Daughter Daughter Son Son Father In Law Father_In_Law Mother In Law Mother_In_Law Other (Describe Other Relationship Below) other

I want to count selected relation (e.g. How many times Father, Mother, Son,
Daughter got selected...) and later put the count in new instance variable
e.g. and so on.

Any way to achieve this?

Regards,
Ayub

Finally tried this bind, it works !

seems like i was evaluating the wrong node.