Odd number amount counter
Own foldl implementation