Use number of related and flag certified_public_service to compute weight.