Test the old Entity<0>::count method only if DISABLE_DEPRECATED_METHOD_CHECK is not set
Use new method Entity<0>::subEntities instead of deprecated method Entity<0>::count