Filtration plays a big part in whether your tank is overstocked or not as well.
What you haven't mentioned is what filter your tank has.
I have a 40L tank full of white convicts (aprox 40) and using a Clearview HOB (Hang on Back) filter and the fish are fine and I am doing water changes once every 2 weeks. This is what most would call overstocked.