Experiment 3 continued. Return row_count and rows before done.
Using erlang process dictionary to keep track what to return in
next_state