private void countPage() {
		File folder = new File(targetPath);
		File[] listOfFiles;
		if(picOnly == true) {
			listOfFiles = folder.listFiles(new Filter());
		}
		else {
			listOfFiles = folder.listFiles();
		}
		Arrays.sort(listOfFiles, new Sorter());
		
		theView.comboxPage.removeAllItems();
		
		int by6 = 0;
		int filesCounter = 0;
		int page = 0;
		
		for(int i=0; i<listOfFiles.length; i++) {
			if(listOfFiles[i].isFile()) {
				by6++;
				filesCounter++;
				if(by6 == 6) {
					page++;
					theView.comboxPage.addItem(page);
					by6 = 0;
				}
			}
		}
		int remainder = filesCounter % 6;
		if(remainder != 0) {
			page++;
			theView.comboxPage.addItem(page);
		}
	}