You can have ten devices (no more than five computers) associated
with your Apple ID
for purchases at one time.
However, you can only listen to music on one device at a time on
the Individual or
Student Apple Music plan. With a Family plan, up to six people
can enjoy unlimited
access to Apple Music on their devices at the same time.