Elements with an id are globals, so you do this (not that it's recommended):
count.innerText =
up.onclick =
down.onclick =
etc count.innerText =
up.onclick =
down.onclick =
etc