Yes I did see the questions similar to this already posted here (notably this one).
But. Am i crazy, or can the size of the square also be a non-integer? For example, in a 2x3 rectangle, one solution is squares that are .2x.2
How can i create a function to find the number of possible square sizes?