I would suggest implementing a tool that allows you to convert all counts to a markup from your tool chest. This would be a great tool to use for translating markups from one department to another I feel.
Unfortunately (to my recollection and testing), a Java script cannot execute anything that would do this. Java script and does stackable layering commands on top of a document. Where as this is more of a physical translation needed in the software.
For example, If I had an estimator count all the doors within a job, and then I could translate the count into markups (Just to place them to the center of the Counts) that have more detail and description- It would save a lot of time.