There is no Code maximum, but there is certainly best practice and experience.
I use very few 15 amp circuits, and when I do, it’s lighting only. I never put receptacles on 15A circuits.
I’ve done some places where each bedroom got its own 20A circuit, lights and receps combined, as space heaters were anticipated, but generally I like to keep them separate, so when the HO plugs in their space heater and electric blanket and a few toys all at once, and trips the breaker, they aren’t also in the dark,
, but that’s not a Code requirement.
I try to use experience and common sense. I will put at least 2 circuits into garages, I never combine bathroom receptacles, each bathroom gets its own circuit, etc.