1. A method for objects counting, comprising: acquiring a depth image of any one frame; detecting objects according to said depth image; associating an identical object in different frames to form a trajectory; and determining a number of objects according to the number of trajectories.