Change Nhits from double to int