Is there a way to decide if Total clean count entity is even or odd?

The filter |int converts a value into an integer, whereas |float converts a value into a floating point number.

By using int(0) or float(0) you ensure that the template will be rendered without any log warnings. Details see here: Templating changes in 2021.10.0