wp term recount <taxonomy>

Recalculates number of posts assigned to each term

Arguments

NameDescription
taxonomyOne or more taxonomies to recalculate