For year end chart positions: #1 position gets 40 points, #2 position gets 39 points ... #40 position get one point.
There is a set of rules, of which some have existed since 1972, that are still maintained.