What will the following Java code snippet output?
String phrase = "Java 11 and Java 8";
Pattern pattern = Pattern.compile("Java \\d+");
Matcher matcher = pattern.matcher(phrase);
int count = 0;
while(matcher.find()) {
count++;
}
System.out.println(count);