Added 'scalar' when getting element count of array, to be explicit.