add the total number of layers