Write logic the way you would test it directly, no rendering needed.
? singular
function pluralize(count, singular, plural) { // TODO }