- π¦πΊAustralia acbramley
This was fixed in #3320240: Entity count query returns a string instead of int β
See https://git.drupalcode.org/project/drupal/-/commit/c1891492e4d31cad222ba...
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...
I checked all child classes of QueryInterface and they either cast result to an int, or use php's count() function which returns an int.