Retrieves the number of layers defined for the given this
Use cogl_pipeline_get_n_layers instead
cogl_pipeline_get_n_layers
A CoglMaterial object
CoglMaterial
the number of layers