Yes it can be used. All you need is a microphone, couple of transistors, a capacitor and a pot for adjusting dB level. Connect two transistors, say BC547, as a darlington pair, connect a pot of 100k or 500k with vcc to mic, then mic to gnd. Feed the pot output to a ceramic cap of 10nF, then to the darlington pair gate, and feed the emitter to your counter switch. Adjust the pot for your desired noise level.
Google have a lot of reference designs for microphone.