Returns the number of states in the given trajectories.
Parameters:
dtrajs (array_like or list of array_like) – Discretized trajectory or list of discretized trajectories
only_used (bool, default=False) – If False, will return max+1, where max is the largest index used.
If True, will return the number of states that occur at least once.