Counts and returns the total the number of items in an array.