Hello;
You definitely can do that with your board.
The first thing you need to determine is if both AI and counter operations will need to be synchronized or not.
If they do, you can use the AI Start Scan signal as the gate signal of the counter, and configure the counter as buffered event counter.
When doing that, at each time a Scan starts, you will transfer the counter value to a buffer.
Hope this helps.
Filipe