Method and apparatus for tracking a number of objects or object parts in image sequences