pass length of nthashhash as argument

 since sizeof() does not work on array arguments