counting pegs