Basically every US navy warship and marine unit before 1941. And a good bunch before 1942. 1942 is the big date when they were almost completly replaced by 20mm oerlikon cannons ( together with 40mm bofors guns replacing the 1.1inch medium AA gun, all wich was a huge surprise to japanese pilots).
And when you need to shoot down an aircraft, use a gun. and if that dont work
Use more gun. Like the Sextuple bofors 40mm designed by the british for their last battleship, HMS Vanguard