Automatic People Counting and Matching