Add Component.ComponentCount method.