Your VI is not complete. What is event case [2] supposed to be connected to? In other words, what front panel control/indicator triggers it? Did you intent to put this in the Timeout case?
Can you provide more details on exactly what it is that you're trying to count? You said "count how many times a digital input changes state". Does this mean low->high, high->low, or both? Your VI name implies that this might be for a relay. If so, are you accounting for bouncing, or is this what you are trying to measure?
Also, are you aware that the 6008 already has a counter built into the hardware? I would suggest using that. Take a look at the examples that ship with DAQmx on how to set up a counter.