trees that count square image