Oh I think I see now, you want to customize the tab where it says "Details". Though if your goal is just "to show if there are any Workitems for the user without switching the tab-view" then I think my method would work, as the Details tab is open by default when you load the table. You could also add the total count view field in the table itself.
Either way...showing the total child records in the caption sounds useful.