In biomedical research¯elds, the in vivo°ow cytometry (IVFC) is a widely used technology which is able to monitor target cells dynamically in living animals. Although the setup of IVFC system has been well established, baseline drift is still a challenge in the process of quantifying circulating cells. Previous methods, i.e., the dynamic peak picking method, counted cells by setting a static threshold without considering the baseline drift, leading to an inaccurate cell quanti¯cation. Here, we developed a method of cell counting for IVFC data with baseline drift by interpolation¯tting, automatic segmentation and wavelet-based denoising. We demonstrated its performance for IVFC signals with three types of representative baseline drift. Compared with non-baseline-correction methods, this method showed a higher sensitivity and speci¯city, as well as a better result in the Pearson's correlation coe±cient and the mean-squared error (MSE).