Adding search and view counter