I dont think I could stick at 10
I would suggest it depends on what foods you cook. I cook a lot of Indian foods so I have loads of "Indian" spices - whole and ground
Then of course I also have what I would call pretty much must haves - nutmeg, cinnamon, paprika , salt and pepper , chillies, dried oregano and basil
Then I have my fresh herbs - rosemary, thyme, sage and chives and bay ( they are the ones that grow well for me ) plus I buy in garlic and ginger - and I have fresh, puree and jars of those ( all give different taste notes )
Then always tinned tomatoes and tomato puree, red and white wine stock pots, oxo, Worcestershire, gravy browning and a Polish vegetable stock powder which is just an amazing flavour bomb
Then I have what I need for cooking Chinese food, rice wine, sesame oil, dark and light soy sauce, oyster sauce, then the speciality things I use like fermented black beans
I have a full height larder thats just ingredients I add to my cooking
Its evolved over 40 years of cooking