Add Integer field to library. Select Default Value. Set value. Then check the Autoincrement checkbox.
In a previous post, you seemed to suggest the autoincrement should somehow relate to another library, but I don't understand how, so I can't speak to that.