Too bad none of the windows he counted were open.
"He counted all the open windows and all the closed windows."