The cap is something like 12 ships per number of stars (all stars, not just player controlled). The number isn't displayed anywhere, but if you see that the production has become sporadic, then you've hit it.
Also keep in mind stars with over 50 ships in orbit don't produce any new ships.