These cases are failing because the following doesn't take into account substitution groups.
count(/tc:root/schema-element(tc:schema-element-head))
These cases are failing because the following doesn't take into account substitution groups.
count( /tc:root/ schema- element( tc:schema- element- head))