Working on counting objects in an image