Fix lin scaled count ones