count layers from 1