Passing a Table to the policy engine

Hi,

I am new to using Bro, and was wondering how i can pass a table from my
event generator (where i have my .cc code) to a policy script.
Specifically, have an array of integers in my C code, and i want to use it
as a table in my Policy script.

I assume that a table of integers should be a
  table[count] of count;
in my policy script.

I tried doing this in my myfile.cc file:

  int pathArr[100];
  val_list* vl = new val_list;
  ...
  TableVal* myPath = new TableVal(internal_type("count")->AsTableType());
  for ( int i=0; i < 100; i++ ) {
    myPath->Assign(new Val(i, TYPE_INT), new Val(pathArr[i], TYPE_INT));
  }
  updaterec->Assign(1, myPath);
  vl->append(updaterec);
  mgr.QueueEvent(update, vl, Event::LOCAL, this);

but I beleve that my TableVal* myPath assigmnet is incorrect, as it
does not recognize "count" as a type when i run it.

Any help is appreicated

Charles Wa