How to keep track of the images removed from the node
<p>I have and HTML file which have many images and even i am able to insert New images into the dom.
I want to keep track of the number of images in the HTML File. Whenever user removes some image, i want to recalculate the size of the HTML file to restrict the number of image than can be inserted. 
Using Cut or backspace or select all and delete, user can delete the images.
How to track the removal and addition of images.</p>
