If a quantity is a pure number or is a number plus a unit of measure depends on the context.
In everyday language, a quantity denotes something that can be measured or counted, and is represented by a number.
In a context of applied mathematics, as economics or physics, as in your example, a quantity is a number together with a unit of measure (the unit of measure can be implicit, as in your example).
In 'pure' mathematics, nowadays, the term 'quantity' is rarely used. It was used in more ancient mathematics. For instance, Cauchy, in the first half of the XIX° century, spoke of 'a quantity that approaches 0' to define an infinitesimal, where 'quantity' stands for what now we call a variable, and represents a real number. But definitions like that were superseded, in favour of more 'rigourous' definitions, that expunged vague and 'ambigous' terms as 'quantity' or 'approaches'.