Objective
Implement a function that counts how many nodes are chained together in a singly linked list.
Steps
$ list_node_count(NULL)
0
$ list_node_count(head) // list: A -> B -> C -> NULL
3
$ list_node_count(head) // list: X -> NULL
1
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Objective
Implement a function that counts how many nodes are chained together in a singly linked list.
Steps
$ list_node_count(NULL)
0
$ list_node_count(head) // list: A -> B -> C -> NULL
3
$ list_node_count(head) // list: X -> NULL
1
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Tests
Run the tests to grade your code