dict: add av_dict_count()