question: How many things are the same color as the thing that is directly in front of the cylinder?
#1 return things 
#2 return cylinder 
#3 return #1 that is directly in  front of #2 
#4 return color of #3 
#5 return color of #1 
#6 return #1 where #5 is the  same as #4 
#7 return number of  #6