Correct getNumComponentsWithSequence for static components.

Prior, the function was always returning 0 for all static components.