Point Regression to count objects

How do I train a model which needs to predict some point on the objects present in a occluded scenario ,Eg. items in retail cart .
Purpose is to count the objects present into the cart based on object points detected,as it iwill be impossible for any object detection model to count because of lot of occlussion present across the items kept in happazard manner in the cart