Counting Objects using One-to-One Correspondence