Yes, there are countermeasures.For every measure there are counter measures. It is like that Chinese story about the lance and the shield. This laser for example operates at a specific wavelength so you could apply coatings to camouflage it in that part of the spectrum or reflect the bottom. Most current methods to detect mines use magnetic detection, but you can also build mines out of non-magnetic materials. You could also use active defenses i.e. passively detect those kinds of lasers and launch a surface to air missile at the target along the beam's path. Heck you could just coat the mines in something which resembles surface algae for example.
But how does a torpedo hide cavitation bubbles and propellor noise? Remember that it has to be traveling at high speed to catch up with a surface ship.
Mines are more difficult, but remember a LIDAR only costs 8M USD. You can have a lot of them on cheap platforms