Revert changes to List.setCount() and update test cases to reflect it