Rewrite menu_list_get_size functions