This paper is concerned with a robust estimator of the intensity of a stationary spatial point process. The estimator corresponds to the median of a jittered sample of the number of points, computed from a tessellation of the observation domain. We show that this median-based estimator satisfies a Bahadur representation from which we deduce its consistency and asymptotic normality under mild assumptions on the spatial point process. Through a simulation study, we compare the new estimator, in particular, with the standard one counting the mean number of points per unit volume. The empirical study confirms the asymptotic properties established in the theoretical part and shows that the median-based estimator is more robust to outliers than standard procedures.