only allow get_key_count on master