Variable checking how many skills this actor knows

Hey guys,

I would like each of my classes/actors to only have 4 skills at a time (kinda like Pokémon).

So I need a variable to check how many skills the actor already has, to make them unlearn a skill in case a 5th skill is learned.

I tried

$gameActors.actor(1).skills.size

and $gameActors.actor(1).skills().size

but it always gives me 0....!?
MV (javascript) uses length rather than size.

$gameActors.actor(1).skills().length
MV (javascript) uses length rather than size.

$gameActors.actor(1).skills().length

THANK YOU @Shaz!!!😊 It worked like a charm!!!

Original thread: https://forums.rpgmakerweb.com/threads/variable-checking-how-many-skills-this-actor-knows.85029/