This version of Unity is unsupported.

Animator.parameterCount

Switch to Manual
public int parameterCount;

Description

Returns the number of parameters in the controller.