You are given a vector of points in 2D space, represented as Vec<(i32, i32)>.
Write a function that returns the number of distinct squares that can be formed using these points as vertices.
A square is defined as a quadrilateral with four equal sides and four right angles.