removeCount method
Implementation
int removeCount(int index) {
if (index == items.length - 1) {
return 0;
} else {
int count = 0;
for (int i = items.length - 1; i > index; i--) {
count += items[i].count;
}
return count;
}
}