Added command counter to gui