You would need a subquery to find the minimum, then use that to query again for the count:
select code, count(*) -- get the count for the code found in the subquery
from workers
where code = (
select min(code) -- return the minimum code found
from workers
where mod(code, 2) = 1) -- only odd codes
group by code; -- group by the non-aggregated column(s0
Edited:
From comments, it seem you want the odd code with the least workers:
select code, count(*)
from workers
where mod(code, 2) = 1
group by code
order by 2
limit 1;
You don't say which database you're using, so the syntax for "returning only the first row" may vary from "LIMIT 1", which is the mysql way of doing it.