thats easy , i do that all the time



int legCount = 0; // create the int to total the legs
for ( int i = 0; i < pets.size(); i++){
legCount += pets.get(i).getLegs(); // use the get(i)...