Can I get the number of frames in a animation clip from a script?

How can I get the total number of frames in a animation clip from a script?

I found AnimationClip’s length parameter, but it’s in seconds.
I also found the framerate parameter.
I think the length of the clip in frames can be determined with this,
but I can’t figure it out.

I think I’m supposed to multiply the two if I want the length in frames. I’m just gonna do that, hope it’s right, and move on I guess. :frowning:

Edit: Unsurprisingly, it didn’t work.