JS can count for us, almost.