Counter function
Short description