I might just be too over accustom to vectors, but how do I get the size of an array in C++ again?

I had to do this
Code:
int num[] = {0, 0, 0, 0};

to fill up an arrary with only 4 zeros initially. Later on in the code I had to use a for loop to fill up the actual values, but can't remember how to get the size of the arrary so had to start from

Code:
for int i = 4 - 1; 


Where 4 is the size of the array...