Just in case anyone cares. I solved my question on how to retrieve the length of the history of an asset in the following fashion assuming the filename is contained in the string tempname:
string tempname = "History\<asset>.t6";
int HAsset;
HAsset = dataLoad(1,tempname,7);
Really simple, but it takes some reading in the manual to figure it out.