Actually it cannot be countered by mortars. Stick a squad inside the bofors and it can use indirect fire itself, which will easily pin and wipe any mortars attacking it. In fact, I would almost say it is better at indirect fire than the mortar pit, why build anything else?
Except for ISG, which greatly outranges it and MHT which will one shot it with incendiary round.