I have an XML in the following format:
@Bala-R (+1) is correctly evaluated using a compliant XSLT 1.0 processor (Saxon):
count(//ComRequest/root/component[count(compLine)>10])
or, either
count(/*/*/*[count(compLine)>10])
Otherwise something is going bad in your tests, your context (different from the one provided in the question) or your xpath evaluator.