Malaria is an infection caused by the Plasmodium parasite that has a major epidemiological, social, and economic impact worldwide. Conventional diagnosis of the disease is based on microscopic examination of thick blood smears. This analysis can be time-consuming, which is key to generate prevention strategies and adequate treatment to avoid the complications associated with the disease. To address this problem, we propose a deep learning-based approach to detect not only malaria parasites but also leukocytes to perform parasite/μL blood count. We used positive and negative images with parasites and leukocytes. We performed data augmentation to increase the size of the dataset. The YOLOv8 algorithm was used for model training and using the counting formula the parasites were counted. The results showed the ability of the model to detect parasites and leukocytes with 95% and 98% accuracy, respectively. The time spent by the model to report parasitemia is significantly less than the time spent by malaria experts. This type of system would be supportive for areas with poor access to health care. We recommend validation of such approaches on a large scale in health institutions.