public static int countDayInMonth(long month) {
		Date d = new Date(month);
		int monthIndex = d.getMonth();
		int year = d.getYear();
		switch(monthIndex) {
		case 0:
		case 2:
		case 4:
		case 6:
		case 7:
		case 9:
		case 11:
			return 31;
		case 1:
			return isLeapYear(year)?29:28;
		default:
			return 30;	
		}
	}