Fix warnings counting for 5.18