I figured out a way to do it that does work. May not be the best way, but with limited scripting knowledge, what works is what I need at the moment.
##
// Identify Primary Key between relationship
id = $feature.streetnameid;
// Create the sql to select the related items in RoadCenterline Layer
var sql = "F_streetnameid = '" + id + "'";
var asset_view = FeatureSetByName($datastore,"RoadCenterline");
var assets = Filter(asset_view, sql);
var cnt = Count(assets);
return cnt
Just wanted to put it out there incase anyone came across this problem.