Device used for counting blood cells