update red pixels count