question: How many shapes are made of the same material as the purple cylinder in the very front of the image?
#1 return shapes 
#2 return purple cylinder 
#3 return #2 in  the  very front of the   image 
#4 return material of #1 
#5 return material of #3 
#6 return #1 where #4 is the  same as #5 
#7 return number of  #6