It depends on what airline/route you are flying and what airline you are collecting the miles on;
For example, there are "direct" flights that make a stop somewhere on the way. That will count as only one segment on many airlines.
It would be nice if you could some more details about your trip, then people can give you an exact answer.