implement Countable and ArrayAccess for Collections