[java] Count the number of items in my array list