Adding to that, perhaps it adds clarity (or perhaps not, but I’ll give it a shot anyway) to think in classes and instances: each individual apple is an instance of the class ‘apple’, disregarding its other properties (colour, taste, texture etc.). For the problem count the number of apples, only the information of whether or not an object belongs to (is an instance of) the class ‘apple’ is necessary, so we can disregard any other information without any losses in respect to the given problem.
That’s essentially a simple form of mathematical modelling of a physical problem, and using this model, we can derive (true) statements about physical reality: if we remove 3 apples from our stash of 7, we’re left with 4.
Now why, you might ask, does this operation we’ve just performed – subtraction – relate to the physical world at all? Basically, this is due to the construction of the natural numbers, also called counting numbers: each natural number has a successor which is also a natural number, and the natural numbers are well ordered, which means that for two numbers m != n (!= : ‘not equal’), either the relation m > n or m < n must hold (so, one of them’s the bigger one).
This means we can count the apples: we identify the smallest number of apples we can possess with the smallest element of the natural numbers (0 or 1, depending on whether you’d say that no apples is a number of apples as well – let’s just go with 1, the reasoning will be identical in this case), and gradually add apples to our stash, and identify each subsequently larger number of apples with the next element in the natural numbers – 2 apples, 3 apples, and so forth.
Then, we can define the addition of apples: adding a given number of apples to our stash is the same as adding the two representative natural numbers (the amounts of apples in each stash), because if you add 4 apples to 3 apples, it’s the same as adding one apple 4 times.
And subtraction, then, works exactly the same way, only by removing apples, and using the predecessor in the natural numbers as representation of your amount of apples until you’ve got none left.
Now, why did I go through all of this in all its ridiculous detail? Because, essentially, that’s how all mathematical modelling works: identifying a physical property (number of apples) with a mathematical object (natural number), and then manipulating that object according to the rules of an appropriate structure (the set of the natural numbers, in this case).
Thus, if your identification is correct, you can derive valid predictions from your manipulation of abstract mathematical concepts, the same way we can say that we’ll have 4 apples left from our previous 7 if we eat 3.