Implement ListSize operation and cover it with test.