@SuppressWarnings("resource")
	private static void printCnt() throws IOException {
		FileWriter writer = new FileWriter(new File("./Counters/counters" + System.currentTimeMillis() + ".txt"));
		int min = 0;
		while (true) {

			System.out.println("\n\nmin: " + min + " written to database, " + database_cnt + " ,fetched: "
					+ collected_cnt + " ,gap: " + (collected_cnt - database_cnt) + " ,databas queue size : "
					+ graphQueue.size() + " ,total fetched: " + total_fetched + " total users: " + total_finished
					+ "\n\n");

			writer.write("min: " + min++ + " written to database, " + database_cnt + " ,fetched: " + collected_cnt
					+ " ,gap: " + (collected_cnt - database_cnt) + " ,databas queue size : " + graphQueue.size()
					+ " ,total fetched: " + total_fetched + " total users: " + total_finished + "\n");

			writer.flush();
			try {
				Thread.sleep(60000);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}