7 base units are defined in physics and other units are derived from these units.
When we say "3 kg of apples", we mention its mass and mass is a base unit.
But for "3 apples", what is its unit? Is this what unitless is?
Yes, "3 apples" is a value of a dimensionless (unitless) quantity, the number of apples. Quite generally, quantities that are either integer, or very special if they are integer, are unitless.
All 7 base units of the SI system, or any product of their powers (derived units), has the property that it measures an intrinsically continuous quantity such that there is no a priori preferred normalization (i.e. unit) that everyone in the whole Universe would be likely to use.