Correct warning message when divide by 0 occurs
add a function to count number of geometry objects in the linked list