The number of layers you can add depends on the app you are using to layer your photos. Third-party apps like Superimpose X allows you to add more layers than the default Photos app.