#C11166. Square Image Counter
Square Image Counter
Square Image Counter
In this problem, you are given the dimensions of n images. An image is said to have a square aspect ratio if its width and height are equal. Your task is to determine how many images have a square aspect ratio.
Input Format: The first line contains an integer n denoting the number of images. The following n lines each contain two integers, representing the width and height of an image.
Output Format: Output a single integer that is the count of images with a square aspect ratio.
You need to implement your solution so that it reads from standard input (stdin) and writes to standard output (stdout). Make sure that your solution works for all the test cases.
inputFormat
The input begins with an integer \(n\) representing the number of images. Each of the next \(n\) lines contains two space-separated integers \(w\) and \(h\), which denote the width and height of an image, respectively.
outputFormat
Output a single integer indicating the total number of images that have a square aspect ratio (i.e. \(w = h\)).
## sample5
1 1
4 5
10 10
7 7
10 8
3