greatly updated star counting tools