This is an admittedly North American response.
MGT
In the US, how much traffic goes over a given track in a year is measured in Million Gross Tons (MGT) e.g. 1 MGT = 2 000 000 000 lbs [spaces instead of commas to be world-friendly]. This is a measure of the total weight of cargo and vehicles but not necessarily the number of individual trains.
Rail Life
The life of a typical railroad rail is between 1300 MGT and 380 MGT depending on if the rail is on a straight (tangent) track or in a curve. There is more friction in a curve. Also, the rail on the low side of a super-elevated curve wears faster than the rail on the high side.
Friction
Because of this great difference in life of the rail, areas that have lots of curves employ machines that add lubrication to the rail. This lubrication is applied after the locomotives pass so that their traction capability is not reduced. Some photos of these machines are below:


Number of Trains
In the US, the largest/heaviest trains carry only one commodity. A typical example of this is a so called "coal unit train". This is a 100-car train loaded with coal where each car weighs 286,000 lbs. Assuming an average of 500 MGT of life:
$$ \text{Number of Trains} = \frac{500*1e6}{(100*\frac{286,000}{2000})} \approx 35 000 \text{ trains}$$
A high capacity line might have 25 trains a day on one track, so the life span in years would be:
$$ \frac{35000}{25*365} \approx 4 \text{ years}$$