Look at the following definition.
Definition. Let $\kappa$ be an infinite cardinal. A theory $T$ is called $\kappa$-stable if for all model $M\models T$ and all $A\subset M$ with $|A|\leq \kappa$ we have $|S_n^M(A)|\leq \kappa$. A theory $T$ is called stable if it is $\kappa$-stable for some infinite cardinal $\kappa$.
I am beginner in model theory and so my questions might be stupid. When you read a basic textbook in math you see that the algebraic , analysis, geometric, topological and .... definitions/concepts are natural. For example algebraic concepts, group, ring, field, module, Galois theory and ... have a clear natural roots. Also the notion of continuity in analysis is a natural (in my sense!) concept. The idea behind topology is also natural. But the model theoretic notions are usually not concrete for me at all! For example one of the main portions in model theory is stability theory (which is a part of Shelah classification) in which you need to count the number of types. I would like to know: where is the idea of stability (counting the number of types) come from?
Any reference would be appreciated.
I recommend this survey of Chernikov as a source.
Stability, in my opinion, should be thought of in the context of the overall classification program$^1$ - in particular, the idea is to look for a "tameness" property which will hopefully imply that a given theory has "few" models (so that we have a hope of classifying them). That is, stability is (initially at least) a tool with an intended application. Remember its original appearance, after all: Morley introduced it to show that (for countable complete theories) categoricity in one uncountable cardinal implies categoricity in every uncountable cardinal, or more broadly that categoricity in a single uncountable cardinal is an incredibly powerful tameness property.
The key point, then, is to connect stability more generally with the number of models - or more simply, to understand why "more types = more models." I think a good first example to consider here is $\mathbb{C}$ versus $\mathbb{R}$ as fields. The former's theory is very simple: an algebraically closed field is classified completely by its characteristic and its transcendence degree, and in particular the theory of algebraically closed fields of characteristic zero is uncountably categorical. By contrast, the latter's theory is very complicated, at least in the sense of counting models: it's easy to show that there are for example continuum many non-isomorphic countable real closed fields. Playing around with this example, it's not hard to see that what's going on is that $\mathbb{C}$ has "few types" while $\mathbb{R}$ has "many types," and this gives us the idea to try to connect the number of types and the number of models more generally. (It also suggests more specifically a connection between instability and definable orderings, and indeed this turns out to hold in a very strong sense: see Definition 2.9 and following in the paper linked above.)
$^1$Of course, to a certain extent this just pushes the question back: why, or to what extent, is the classification program natural? In my opinion, the question of when a (first-order axiomatizable) class of structures admits a "reasonable classification" is an extremely natural one, motivated by examples on each side - e.g. uncountable dense linear orders without endpoints are extremely complicated even though their theory is very simple, while algebraically closed fields are easily classified by characteristic and transcendence degree - and the reflexive desire to find a "common thread" uniting the tame, or the wild, theories.