Hi Alan,
There is a good knowledge base that describes what you are looking for. Have a good day.
Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line
http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument
Ron