Added counter delete functionality