Totally agree. You could do a large school of ember tetras, neon tetras, harlequin rasboras, or something similar.I wouldn’t put more than 6 fish in a 40 marine, while on freshwater, if keeping smaller fish, you can do much more as the behaviors allow for it.
You could also have a large shoal of Corydoras or hill stream loaches.