counts some stuff