public int GetExecutionCountForUser(string username) { try { return (from script in m_runningScripts where script.Owner == username select script).Count(); } catch (Exception excp) { logger.Error("Exception GetExecutionCountForUser. " + excp.Message); return 0; } }