I hope this is the right place to ask this question...
My question regards the motivations behind forming numbers and their connection to physical objects. What I am not asking about, is a rigorous formulation of the natural numbers. Instead, I am curious about the perhaps more philosophical step before. Let me explain:
Generally, when we want to construct the integers (and eventually reals) we motivate the task by saying that a number represents a collection of items, addition of these numbers represents the combination of these items and so forth. (I guess this is sounding a lot like set theory as well). My question is how are these fundamental connections between numbers and the physical task of counting rigorously constructed. The way I have written it (the stuff in italics) is riddled with mysterious language such as “collection,” “combination” etc.
Of course in a purely mathematical context, this is unimportant. However, I think it’s still valuable to appreciate how abstract concepts in numbers all still hail from the mundane (yet seemingly hard to define) task of counting things.
*often times when we think of the physical models behind mathematical results, we arrive at this simple notion of “counting objects. Is this really the most precise way we can define this connection" *
For example, we “count” a collection of five apples as, well, five apples...
Not really an answer, just remarks (but you have not really asked a question either):
I found it enlightening when I read (in my case, for the first time in Frege's Grundlagen der Arithmetik) that numbers are not something that applies to physical reality, but to concepts. You are already working with abstractions when you get to apply numbers. Simplified example: There is no such thing as "three apples". There's some visuals, smells, sounds. But your mind at some stage has developed the concept "apple", i.e. the idea that there is something that can be called apple, and something that cannot be called apple (e.g. a pear, or cigarette smoke, or a memory of your grandmother); and of the former concept, there happen to be three on the table.
In a Kantian view, numbers are not part of the "Ding an sich", but part of the way our reason orders reality. As shown in Q the Platypus' answer, numbers come up once one has the concepts of "collections of objects" and "bijections between such collections". Neither of these concepts are a part of physical reality; they are ways how our mind makes sense of the world.
As an aside, it's maybe interesting to think about how e.g. concepts of continuous motion, or measurement, actually come earlier in childhood development than the natural numbers. In a way, some properties of the continuum (the real number line) are even more basic and intuitive than counting objects. So you might as well ask, what's the relation between the idea that something is "bigger" or "smaller" than something else to physical reality, or the idea that if two things are not the exact same size, then one is bigger and the other is smaller, and that then there is always something whose size is between them ... is that grounded in physical reality?
Addendum: In the comments, user Shahab links to the question https://philosophy.stackexchange.com/q/49807/40478 where several comments and parts of answers raise points maybe better than I could do it. In particular, I want to quote from one answer by user "Ben - Reinstate Monica":
and in particular this comment by user Dan Bryant:
which, if I'm not mistaken, is exactly what I tried to convey with my "apples" above.