In accordance with the International System of Units (SI) [Brochure in English, 8th edition, 2006; updated in 2014] and the corresponding International System of Quantities (ISQ) [ISO/IEC 80000 Quantities and units (14 parts)], you can define a suitable new quantity, for example with the quantity name “number of apples” and the quantity symbol “$N_\text{apples}$”.
The number of apples $N_\text{apples}$ is a quantity of dimension one (for historical reasons, a quantity of dimension one is often called dimensionless):
$$\dim N_\text{apples} = 1$$
A quantity of dimension one acquires the unit one, (symbol: $1$); i.e. the coherent SI unit for the number of apples is the unit one.
Generally, the unit one is an SI derived unit; for example, the derived SI unit for friction factor is newton per newton equal to one, (symbol: $N/N = 1$). However, the unit one for counting numbers, e.g. number of protons in an atom or number of apples, is considered as a base quantity because it cannot be expressed in terms of any other base quantities. Hence, in this case, the unit one is usually considered as a base unit, although the CGPM has not yet adopted it as an SI base unit.
The name and symbol of the measurement unit one are generally not indicated. Therefore, you may write: “The number of apples is $N_\text{apples}=7$.”
The unit one or its symbol $1$ may not be combined with SI prefixes. For example, if you have 2000 apples, you must not write “$N_\text{apples}=2\ \mathrm k$” for $N_\text{apples}=2000$. (And by the way, when you see something like “10K reputation” mentioned on any stackexchange site, you are looking at at least three nonconformities at the same time.)
Any attachment to a unit symbol as a means of giving information about the special nature of the quantity or context of measurement under consideration is not permitted. Expressions for units shall contain nothing else than unit symbols and mathematical symbols. Therefore, write
- “the maximum electric potential difference is $U_\text{max}=1000\ \mathrm V$”, not “$U=1000\ \mathrm V_\text{max}$”
- “the gauge pressure is $p_\mathrm e=0.5\ \text{bar}$”, not “$p=0.5\ \text{bar(g)}$”
- “the electric power is $P_\text{el}=1300\ \mathrm{MW}$”, not “$P=1300\ \mathrm{MW_{el}}$”
- “the water content is $170\ \mathrm{g/l}$”, not “$170\ \mathrm{g\ \ce{H2O}/l}$”
and also
- “the number of apples is $N_\text{apples}=7$”, not “$N=7\ \text{apples}$”