-static int find_pred (node_t **pred_ptr, node_t **item_ptr, list_t *ll, const void *key_data, uint32_t key_len, int help_remove) {
+uint64_t ll_count (list_t *ll) {
+ uint64_t count = 0;
+ node_t *item = ll->head->next;
+ while (item) {
+ if (!IS_TAGGED(item->next, TAG1)) {
+ count++;
+ }
+ item = (node_t *)STRIP_TAG(item->next, TAG1);
+ }
+ return count;
+}
+
+static int find_pred (node_t **pred_ptr, node_t **item_ptr, list_t *ll, void *key, int help_remove) {