Advanced Tree Counting: Mathematical Layouts With `sibling-index()` And `sibling-count()`