add tag type counts stat to search results
make frequency-stat helper, add total to it
fix ordering of cljs fns
add tag type stat to type page