Using a counter to determine the perimeter of a simple shape | ScratchStats