GObject.FlagsClass.n_values

FlagsClass.n_values: Number(guint) (Read / Write)
  

the number of possible values.