Women, children, and slaves were all counted for purposes of representation (slaves at 3/5 --- which made the slave states
weaker, not stronger) even though they couldn't vote.
Children can't vote to this day but still count in terms of representation in the House.