whitespace fix.
Added a function to compute array length.