Most viewed

Is there a function to create a list of most viewed entities of a special subtype?