What is a counter? how does a counter work. How is it different from a counter loop? show an example

What is a counter? how does a counter work. How

is it different from a counter loop? show an example