Scientists calculated how many T. Rexes lived on Earth — here's how