How to get a lenght of a subtable

Hi guys,

I have this table:

local color = {                       {key = "red", variance = {"purple", "pink"}},                       {key = "blue", variance = {"dark", "light", "juicy"}},                                   }

Can you tell me a simple way how to get a length (i.e. number of items) of color[2].variance subtable ?

The result should be 3 ({“dark”, “light”, “juicy”}).

Waiting your reply.

Many thanks  :D 

Ivan

[lua]

local leng = #color[2].variance

[/lua]

Thanks Nick!

[lua]

local leng = #color[2].variance

[/lua]

Thanks Nick!