Baby Weight

How do drs determine the weight of baby while they’re inside you?