The recommended direct counter is groundfiring the stacked subs with ships that have splash damage, such as destroyers.
Only exodus has enough splash out of all the destros to groundfire subs (1.4 instead of 1), and even so it's barely enough so I wouldn't recommend it. Battleships with 2 splash radius are the usual groundfire unit, although by that game stage it's a bit irrelevant.