average_rank() and rank_count() methods for MetaDap