Matrix counts in shaders