Using sizeof() to calculate number of array elements