Hematology analyzer based on optical method