Adding a list_length convenience function.