[Olena-patches] r3497: Add routine to calculate the number of components retaled to a createria