TP5: Implement linked list counting iteratively and recursively