1function N = mtrace_count(T,A,t)
2% Computes the count process sample, at resolution,
for the marked trace
6periods = ceil(time / t);
9N = zeros(periods,length(C));
13 tstart = T(1) + (i-1) * t;
16 N(i,c) = sum( Tcum > tstart & Tcum <= tend & A == c );