ali11 -1 Light Poster

Hi i am looking for following output.I am not getting these.
System.out.println(total no of grades)
Number of A's
Number of B
Numbers of C
Number of D
number of F
[CODE]import java.util.Scanner;
public class ExamScores
{
public static void main (String[]args)
{
String a;
int count= 0;
String word;
int grade=0;

Scanner scan = new Scanner (System.in);
System.out.println("Enter your exam grades");

a=scan.nextLine();
int len=a.length ();

for (int i=0; i< len; i++)
{
    if (a.charAt (i) ==' '){
    count--;
}else {
    count++;

System.out.println(count);

}
}

if (grade > 90 && grade <= 100) {
grade= 'A';
} else if (grade > 80 && grade <= 89) {
grade= 'B';

} else if (grade > 70 && grade <= 79) {
grade= 'C';

} else if (grade > 60 && grade <= 69) {
grade= 'D';

} else if (grade> 0 && grade <= 59) {
grade= 'F';
}
System.out.print( grade);
}
}[/CODE]