Lay paper clips along a pencil, one after another, touching end to end. If 6 clips reach from one end of the pencil to the other, the pencil is 6 paper clips long. That is measuring: counting how many same-size units fit along the object.
Every unit must be the same size. If you mix big clips and small clips, the number means nothing. The units must also touch. A gap between clips makes the count too small. Clips that overlap make it too big.
A ruler is a row of same-size units already laid out for you, with numbers on them. Put one end of the object at 0 and read the number where the other end stops. If the object starts at 2 instead of 0, do not just read the end. A crayon from 2 to 7 is 7−2=5 centimeters long, not 7.
Measuring is more than comparing. Holding a pencil next to an eraser tells you which one is longer. Measuring tells you how long each one is, so you can also say how much longer.
Think of it like this. Measuring length is like counting footsteps across a room, heel touching toe each time. If your steps are all the same size and leave no gaps, the count tells how long the room is in your feet. A grown-up's bigger feet give a smaller number, which is why everyone uses the same units, like centimeters.
Core idea. Length measurement finds how long something is by counting how many same-size units fit along it, end mark minus start mark.