Auto calculate number of PhDs