The batsman is given four runs if the ball rolls along the ground and hits the boundary. They are given six runs if the ball crosses the boundary while in the air and then touches the ground, similar to a home run in baseball.