Fixed Trial Counter

Trial Counter was fixed. No longer operates by reading a signal from xPC
(which appears to be broken for some reason) but uses an internal
stopwatch combined with the trial duration to calculate the trial
number. Tested for drift and appears to stay consistently accurate with
xPC.