Yes
//get all rows in yard table
var all_td = document.getElementById("tableId").rows;
var counter = 0;
//loop through each row
for(var i=0;i<all_td.length;i++)
{
//loop through each cell in the row
for(var ii=0;ii<all_td[i].cells.length;ii++)
{
if ( all_td[i].cells[ii].innerHTML.length > 0 )
{ counter++; }
}
}
alert(counter)