Dynamically determine array size.