simple java character counter for personal use