Hi, I looked around our internal database and found this example. It is not exactly what you are looking for, but it will give you an idea on how to implement the code for your application. This example was made for VB 3.0 and uses NI-DAQ function calls.
We do have some other examples to take a look at, but they are written in LabView. If you are interested in them, please go to ni.com and make a search for "8253".
********************
ICTR example for VB/WIN
Description: This program is a general purpose example using the ICTR_Setup function in NI-DAQ. Simply set the parameters, and start the counter. It uses the VB Timer event to periodically look at the count value using ICTR_Read.