error codes on charlieplexing

I need some help in the following sketch: (sketch based on charlieplexing code found in ARDUINO COOKBOOK

byte pins = {2,3,4}; //the pins connected to the LEDs

//the next two lines infer number of pins and LEDs from the above array
const int NUMBER OF PINS = sizeof(pins)/ sizeof(pins[0]);
const int NUMBER OF LEDS = NUMBER OF PINS * (NUMBER OF PINS-1);

byte pairs[NUMBER OF LEDS/2][2] = { {0,1}, {1,2}, {0,2} }; //maps pins to LEDS

void setup()
{
//nothing needed here
}

void loop(){
for(int i=0; i < NUMBER OF LEDS; i++)
{
lightled(i); //light each led in turn
delay(1000);
}
}

//this function lights the given LED, the first led is 0
void lightled(int led)
{
//the following four lines convert LED number to pin numbers
int indexA = pairs[led/2][0];
int indexB = pairs[led/2][1];
int pinA = pins[indexA];
int pinB = pins[indexB];

//turn off all pins not connected to the given LED
for(int i=0; i < NUMBER OF PINS; i++)
if( pins != pinA && pins != pinB)
* { //if this pin is not one of ours pins*
_ pinMode(pins*, INPUT); //set the mode to input*
digitalWrite(pins*, LOW); // make sure pull up is low*
* }
//now turn on the pins for the given LED*

* pinMode(pinA, OUTPUT);
pinMode(pinB, OUTPUT);
if( led % 2 == 0)
{
digitalWrite(pinA,LOW);
digitalWrite(pinB,HIGH);
}
else*

* {
digitalWrite(pinB,LOW);
digitalWrite(pinA,HIGH);
}
}*_

I am getting an error of:
expected initializer before ‘OF’
‘NUMBER’ was not declared in this scope
expected ‘]’ before ‘OF’
I have tried possible solutions but sketch will not compile. Can you help?
Thanks.

 NUMBER OF PINS

Needs underscores: NUMBER_OF_PINS

When posting code, please use the # icon on the editor’s toolbar

AWOL: NUMBER OF PINS

Needs underscores: NUMBER_OF_PINS

When posting code, please use the # icon on the editor's toolbar

Thank you. Appreciate it.