versus windows with certain class names: Exclude windows with particular names from enumeration or modify these names.
versus checking top level windows' number: Create fake windows in the system so that their number will not be small or equal to the predefined numbers.