There is no single right number. The right count is the one that answers every question a guest has before they message you.
Start with coverage
Every sleeping space, every bathroom, the kitchen, the eating area, the main living space, the outdoor space and each amenity. Count the spaces first, then the shots.
A complete set beats a few hero shots
A gallery with five beautiful photos and no bathroom raises questions. A complete set answers them.