My first sketch. Hello world and Hello Arduino forums

Is there a sizeof, length, or size method I can use against an array? For example...

void blink_binary_number(int number, boolean vol=HIGH){
for(int led = 0; led < PINS.length + 1; led++){
if (bitRead(number, led) == 1){
digitalWrite(PINS[led], vol); //Here we use our PINS array to decide which LED to blink. Since I wanted 13 to be bit 0, 12 bit 1, etc...
}
}
}

This would allow me to change the size of my pins array without re-writing this method.