Add number of tiles in each layer to file.