Count of Departments with contacts associated

Hi @BukunmiOdetayo I need this but for the companies object. For each Company (customer), they need to know how many departments they have contacts for.