Displaying rect count in each frame