added length function stubl to return length of linked list counting nodes