An Automated Vehicle Counting System Based on Blob Analysis for Traffic Surveillance