Display component counts as 3D text in workspace (not as a report)?

It’s not in 3D Text but below is a link to an older ruby script i use for myself that lists components, their names and quantities with some other info as an outliner overlay on your screen. Not an exact fit with what you are asking.