I am a rookie in programming world and would appreciate if anyone can solve this problem and make me understand.the output is always "no data entered".
public class Trial {
public static void main(String[] args){
    Scanner firstno = new Scanner(System.in);
    int count = 0;
    double sum = 0;
    System.out.print("enter first number: ");
    double firstnoin = firstno.nextDouble();
    while (firstnoin != 0){
         sum += firstnoin;
         count = count++;
         System.out.print("Enter next number, or 0 to end: ");
         firstnoin = firstno.nextDouble();
    }
    if(count == 0){
        System.out.println("No data is entered.");
    }
    else {
        System.out.println("Average of the data is: "+(sum/count)+", number of terms are "+ count);
    }           
}
}