Mili
You have a good idea, I think you are just connecting your signals to the wrong connections. The Analog Output external clock connection is PFI5/UPDATE for E-Series boards, not GPCTR1.
Another option you may want to consider is to use a TTL signal as a Gate for the counter operation and as a trigger for the analog output operation. In this case, the analog output trigger pin is PFI0/TRIG1 for E-Series boards.
Let me know if you have any questions about this. Also, let me know what your counter operation is and what DAQ board you are using.
Brian