Complete rewrite
sample_probs default count
Multiple keys allowed
Read from stdin
Exit from unimagined event case