Returns the number of elements in the list.
Example:
var list = new ArrayList<string> (GLib.str_equal); list.add ("a"); assert (list.size () == 1);
the number of elements.