This version of Unity is unsupported.

AnimationCurve.length

public int length;

Description

The number of keys in the curve. (Read Only)