@log_call
def metadef_property_count(context, namespace_name):
 namespace = metadef_namespace_get(context, namespace_name)
 _check_namespace_visibility(context, namespace, namespace_name)
 count = 0
 for property in DATA['metadef_properties']:
  if (property['namespace_id'] == namespace['id']):
   count = (count + 1)
 return count

@ log_call def metadef_property_count ( context , namespace_name ) : namespace = metadef_namespace_get ( context , namespace_name ) _check_namespace_visibility ( context , namespace , namespace_name ) count = 0 for property in DATA [ 'metadef_properties' ] : if ( property [ 'namespace_id' ] == namespace [ 'id' ] ) : count = ( count + 1 ) return count
get properties count in a namespace .