The two main methods of mounting an axle counter is firstly drilling through the rail, this is seen as time consuming and possible damaging to the rail.
The second is a rail mount, which clamps to both sides of the rail from underneath it.