When can the heartbeat be seen on ultrasound

How many weeks do you have to be to see the heartbeat, I've been measured at 5 weeks and 2 days and a heartbeat was seen but surely I'm measuring small?? Maybe I'm further on than that!?