LPS-35151 Source formatting
LPS-35151 Using super.addCriteria() is a good pattern - using it everywhere
LPS-35151 filtering the prepare process based on if the user has selected the checkbox for that entity or not is not a good idea. the purpose of providing counts is to help the user to decide if he or she wants to select the checkbox for exporting it or not, not to not even count if it's not checked.