What is folio number in demat account

What is a folio number in a demat account and how is it used?