Adds an item to the list and returns the number of items on the list. Each item can have a key which will be used as the value when the form is posted to the server.
This method uses PHP reflection to iterate through published properties (the ones starting with get) and retrieve the properties stored by a previous serialize() call.