ptrlist: add a counter for the number of removed elemnets