Why is golf played over 18 holes?

Always thought because you got 18 nips out of a bottle of whisky as us Scots like a nip in the winter thats why it was 18 holes.
 
Top