An attorney or counselor at law shall not be allowed any compensation as a witness in any cause in which he shall be concerned as attorney or counsel.