Added counter to count num. entries removed.