arash2,
Thank you for posting to the National Instruments Forums. I would also recommend testing your configuration by using the Traditional DAQ test panel in Measurement and Automation Explorer (MAX). You can locate MAX in Start>>All Programs>>National Instruments>>Measurment and Automation. Then expand the devices and interfaces folder and the Traditional NI-DAQ (Legacy) Devices folder. Find your device, click on the device, and click on Test Panels... at the top of the screen. Select the counter and try to count the pulse train from the test panel. If you are able to in the test panel than your external configuration is correct.
I hope this helps. If you continue to run into issue feel free to post back to this thread.
Regards,
Neil S.
Applications Engineer
National Instruments