Adding number of elements in array declaration for contingous function