simplifying list and count defs in BaseModel