This version of Unity is unsupported.

Shader.passCount

Switch to Manual
public int passCount;

Description

Returns the number of shader passes on the active SubShader.