query function

Retrieve counts or next symbol probability distribution