To be moved elsewhere in the document …
px %>% dplyr::filter(!is.na(team)) %>% distinct(team, match_id, set_number) %>% count(team)