simple array counter