Cache linked list length in #count