count layers and throw error over 75
missing end