How to get the source data in pivot table to get the count of the child element

https://snippet.webix.com/d9e49sbq
Hi ,
In the above snippet am able to get the child count next to the name of the tree table. But is there a possibility to achieve the same with the original data instead of the aggregated data?(Because in my apllication, when table get loaded it will filtered by state “failed”.so need to get the orginal data
eg: https://snippet.webix.com/s5mu6yzs ).In the below snippet $source holds the id’s of source data, but when i tired to print subItems in my application i am not able to see the source attribute in the console.So is their any way to iterate the originl data and get the childcount
https://snippet.webix.com/tcdxqmzf