question: how many balls or cylinders are green?
#1 return balls 
#2 return cylinders 
#3 return #1 that  are green 
#4 return #2 that  are green 
#5 return number of #3 
#6 return number of #4 
#7 return #5 or  #6