Convertor for counting positions in windows