Explanation
The sample displays the count value and status of the number of channels you want.
The using procedure is as follows:
input the device name, initialization, setup the counter mode, and start counter.
Input 'q' to terminate the processing.
Execution example
py counter.py
Execution screen