rev gem
move to hashes for count and sample