Counting Squares on Pegs - Instructions

Getting hard time to understand the instructions,

Can someone give a good example of squares count?
For the next input:

9
0 0
0 1
0 2
1 0
1 1
1 2
2 0
2 1
2 2
Does it output 5?

3 messages ont été intégrés dans un sujet existant : Counting Squares on Pegs