$inNum) { $total += $key + 1; $inSum += $inNum; } $total += $inCount; echo ($total-$inSum)."\n";