Use class C4 is the planning use class for a small HMO: a dwellinghouse occupied by between 3 and 6 people as a house in multiple occupation, who do not form a single household and who share basic amenities. It is a planning category, not a licensing category. Licensing still uses the Housing Act tests, including the 5-person mandatory rule.
A family home is usually use class C3. An HMO with 7 or more occupiers is typically sui generis, outside C4, and usually needs planning permission. An Article 4 direction can require planning permission for a C3 to C4 change.
Useful links
Guidance only, not legal advice. Only the council can decide whether a property needs a licence, and the law can change. Check the linked GOV.UK pages and your council.