OWCOUNT: fix 'Argument  isn't numeric' errors
Merge branch 'fix_owcount' into refactoring_owtherm