aviaashu,
I browsed through the PDF you attached and it seems like this code uses two Analog Inputs (ai0, ai1) and two Analog Outputs (ao0,ao1), and 3 counters (ctr0,ctr1,ctr3). The resources I have linked below should be able to help you
NI PCIe-6353 Device Pinout
https://zone.ni.com/reference/en-XX/help/370466AC-01/device_pinouts/6353_pinout/ - This should help you find out what PFI lines correlate to what counter (located in the table at the bottom)
BNC-2110 Manual
http://www.ni.com/pdf/manuals/372121f.pdf -This should help you with locating the necessary PFI lines and Analog Outputs/Inputs on the BNC 2110 (check page 9 for PFI lines)
Applications Engineering
National Instruments