Because "count" is only initialized to 10 once, even though it's done inside the loop. Because of "static", the initialization assignment is only executed once, at the time of allocation.