Confused about 们 in this particular sentence "你们家有几口人"
"你家有几口人?" is asking the singular 'your family' (one single family as a unit)

“你们家有几口人?” is asking the plural 'you' (everyone in the family can answer this question. You as a member of the family, can answer this question on everyone's behalf)

"你的家中有几口人?" is asking the singular 'you' (how many people are in your family)

All sentences above are valid