I can confirm that the counter reaching to 100 triggers the single ending.
Although, I cannot tell if the nails genuinely glitched out where, upon getting the second one, I used their respawning nature to spam them one by one until I reached 100 more quicker.