UNSW School Mathematics Competition Problems 1987

In Randwick, the cats, I declare,
They number one third of a square,
If a quarter did roam,
Just a cube would stay home.
How many, at least, must be there?