Add code to calculate number