Your program is incrementing the device number as you go through each measurement. If you only have one device, this will cause you to receive the 10009 error. Additionally, this frequency measurement VI uses two counters, so when you're using counter 0, counter 1 is being implicitly used. When you're selecting counter 1, counter 0 is implicitly used. The counters on a 6602 are paired (0/1, 2/3, 4/5, 6/7). It's possible that you'll get some "channel is already in use" errors due to this pairing. Also, you could possibly run into repeatability issues because there is no set sequence of execution. By that I mean you are not guaranteed which channel will measure first.
Hope this helps!
gus....