private void setLabelText() { try { if (text.Length > 0) { counter.Count(text); clipboardLabel.Text = counter.ToString(); } else { clipboardLabel.Text = noTextMessage; } } catch (Exception) { clipboardLabel.Text = noTextMessage; } }