How to display the number of contents of a node?
could you add some details to your question that will tell us WHERE you want to see these counts?   Is it in a page template? A view? A block?  The answer will change depending.

In the meantime, please look at this:
Count of nodes by type