implemented binary counter for kwhs in led lights