An Intelligent People-Flow Counting Method for Passing Through a Gate | Synapse