Find out how many bands my EQ has

Hello to all,
I am trying to find out how many bands my EQ has. I am trying to do this via the BandOffset with “EQ.getAttribute(5)”.
If the EQ has one band, I get the value “0.0”. If the EQ has more than one band, I get the value “9.434481620788574”.
What am I doing wrong? And is BandOffset even the correct parameter?
Thank you very much
Oli 
@OliUllmann BandOffset is used to compute how far in the array to go for changing the parameters for the specie band you want. Try dividing getNumAttributes by the number of EQ attributes.

@clevername27
Unfortunately, I don't know what you mean. Do you have a small code example? 
@OliUllmann This is not an exact solution but the EQ broadcaster example might help shed some light on the matter

@HISEnberg
Yes, I had already looked at that example. I'll take another close look at it. Thanks to you.