@Ahmad Samir
Thanks for providing a very nice code.
Your first command, the list of used styles in the text, represents a good part of the answer. Would it be possible to add, for each of the listed styles, the occurrences of each of them?
I mean, to get a list of this kind: |Italdroite 25|Header 12| and so on...
We could focus later on the least used items.
I did not find the second one so useful: it somewhat replicates the style sheet and is a little too verbose, or, more probably, I missed something...