count the array