Count number in each state
get_previous_counts(agent_states, n_states)
| agent_states | vector of length agent_states where each has a value of -1, 0, ..., K-1. |
|---|---|
| n_states | number of total states since we will use zeros |
We return a vector of length K of counts, the number in state 0 through K-S