logical description to count even and odd numbers