unit test for count
test for top/bottom k