question: How many of the balls are the same color as the cylinder on the right?
#1 return balls 
#2 return cylinder 
#3 return #2 that is  on  the   right 
#4 return color of #1 
#5 return color of #2 
#6 return #1 where #4 is  the   same as #5 
#7 return number of  #6