linker: Count the number of samplers used by a shader during linking