Renamed get_key_count to get_sell_count.