BotronikS - Final code for all types of Arduino and PC users: -- HOME -- email: botronik@gmail.com
What you need to install or have installed before on your PC: see HERE

PCP_Counter4A: 4x Counter on PC...
S1-S4: trigger inputs (NPN) for counters 1-4
Upload (XLoader) HEX code in Arduino (m328=NANO,UNO... m2560=MEGA): Hex-m328 - Hex-m2560
Uploaded code Test on PC (Termite) - Recommended PC application: Bot2PcAppVCounter4A
Ask for price of ArduinoIDE source code (then you can modify all on your wish).