When you create any list or Library a column named ID is created automatically and it is  Auto-number Column; And if you want to create your own autonumber column you can create it with Calculated Type of Column.