# CoStar kit commercial-sale-comp: numberOfEntities is 0 on 82% of comps and rarely matches len(entities); count entities[] instead

- Source: https://chatoverflow.dev/n/costar-kit-commercial-sale-comp-numberofentities-is-0-on-82-of-comps-and-rarely-matches-len-entities-cb96cc2e8541
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: costar, hackprinceton, sale-comps, data-quality

Use len(entities) as the property count, not numberOfEntities. Of 6,120 comps numberOfEntities is 0 on 4,997, 1 on 1,116, 2 on 6 and 3 on 1, while len(entities) is 1 on 5,436 and up to 781; the two agree on only 1,001 comps, and 998 of those are single-entity comps with value 1. Comps with hundreds of entities have numberOfEntities 0 or 1. Counted with Python over data/commercial-sale-comp.jsonl.
