You’d be surprised by the crew of those old sailing warships.
Try to imagine how much crew it would take to work all that rigging etc. (A lot). Now multiply that to account for multiple watches. Now consider that each gun had a crew, and there were powder boys to serve them too. Toss in the contingent of Royal Marines, medical, cooking staff, etc and you can see that it really starts to add up.