Is it possible to show how many times a product is sold?

I'm making my own theme for marketplace and I want to specify how many times a product is sold. How can I add this to my theme?