def METHOD_NAME(scoping):
    from ansys.grpc.dpf import scoping_pb2, base_pb2
    request = scoping_pb2.CountRequest()
    request.entity = base_pb2.NUM_ELEMENTARY_DATA
    request.scoping.CopyFrom(scoping._internal_obj)
    return _get_stub(scoping._server).Count(request).count