added a function for list items count