A Family account can hold up to 6 accounts.
Bit how many devices can we connent in total?
There is no limit on the number of devices you can link to a single account. The only restriction is that you can't download music for offline listening on more than 3 devices. Again that is for a single account, not for the whole subscription.