Create and configure a counter or an indicator