import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0203 { public static void main(String[] args){ try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){ char c1[] = br.readLine().toCharArray(); char c2[] = br.readLine().toCharArray(); int ans = Counter(c1, c2); System.out.println(ans); }catch(IOException e){ e.printStackTrace(); } } public static int Counter(char c1[], char c2[]){ int ans = 0; int buf = 0; for(int i=0; i