Add counter support to REST Explorer

+ Move ./static/ to ./ui/
+ Consolidate the UI a bit.
Make this a const and define it up above the var() section.