Time complexity to count elements in linked list. .