Add squares counting