public static int appenedFileCount(File file) throws FileNotFoundException {

		int count = 0;
		int commentLines = 0;
		int lineComment = 0;
		Scanner scanner = new Scanner(file);
		while (scanner.hasNext()) {

			String string = scanner.nextLine().trim();

			if ((string.contains("/**") || string.contains("/*") || string.contains("//") || string.trim().isEmpty())) {
				commentLines = commentLines + 1;
			}
			else if (string.startsWith("*")) {
				lineComment = lineComment + 1;
			}

			count = count + 1;

		}
		System.out.println(file.getName() + " --> Number of lines : " + (count - commentLines - lineComment));
		System.out.println();
		return (count - commentLines - lineComment);
	}