new function to calc 'most frequently used commands'