A question about coding (bar chart race)

int count = 0; must be before setup() to make count a global variable, known everywhere

Please understand what setup() and draw() are