int () { if (documentOfPagesModel.getPagesAmount() > 0) { if (documentOfPagesModel.getFirstPage().getPageNumber() == 0) { return 0; } else { return documentOfPagesModel.getFirstPage().getText().length() / 2; } } else { return 0; } }