Lay paper clips end to end along a pencil. If 5 clips cover it, the pencil is 5 paper clips long. The paper clip is the unit, and 5 tells how many units fit. That is what a number does as a measure: it says how many equal units it takes to cover a length, fill a cup or balance a scale.
The unit changes the number. Measure the same pencil with small cubes and it might take 15 cubes. The pencil did not grow. The unit got smaller, so more of them fit. That is why 15 by itself tells you nothing: you need 15 cubes or 5 clips. Rulers use units everyone agrees on, like inches or centimetres, so everyone gets the same number.
Counting buttons is different. 7 buttons are 7 separate things, and you find the number by touching each one. A 7-inch ribbon is one ribbon, not 7 pieces, and you find its number by laying a ruler beside it. When something comes in separate pieces, count it. When it is one long, heavy or full thing, measure it.
Units must match before you add. A 2-foot board and a 3-foot board make 5 feet together. A 2-foot board and a 3-inch block do not make 5 of anything until one of them is changed into the other's unit.
Think of it like this. Measuring is like counting how many of your footsteps it takes to cross a room. A grown-up gets a smaller number, because their step, the unit, is longer. That is why we use rulers: an inch is the same size for everyone.
Core idea. Number as measure tells how much of a continuous quantity there is — always a number plus a unit.