16 texture limit for any material, including material functions included in it. Makes no difference if it is layered, material function, what have you. Hard limit at 16, which is more than you should ever need anyway.
It will help cut down on texture samples too if you're cutting it a bit close to the 16 texture limit on a material. Usually though outside of something like a vertex blending shader, that won't really be an issue.