Created size method for linked list