removed unused code and changed the param as  getViewCount to includeViewCount