The paper presents an improved method for estimating the number of moving people in a scene for video surveillance applications; the performance is measured on the public database used in the framework of the PETS international competition, and compared, on the same database, with the ones participating to the same contest up to now. The system exhibits a high accuracy, ranking it at the top positions, and revealed to be so fast to make possible its use in real time surveillance applications