I have 20 odd shrimps with 8 goldfish, paradise fish, leopard danios and white clouds.
Also can be kept with hill stream loaches and plecos without any issues.
My goldfish are quite large and don't bother the shrimps at all, they are fast movers and escape the fish. Though they are never bothered by them.
Awesome to have they are often out during the day too