Counting of odd and not odd numbers in sequence without array