Can someone expain me how the count up and down works in this code

  • Did you try the code offered you here ?