Write a program that accepts the server log-file, finds all the unique IP addresses and displays their number. & nbsp;
rn
a few lines of text, a few lines of text, a few lines. Each of which is a record in the log. The IP address is always the first element in the line and is separated from the rest of the gap. The input ends when it is transmitted "0".
Input format
several lines. IP is always written at the very beginning.
Output format
One number & mdash; The number of unique IP addresses found in the input data.
Example
Input
192.168.0.1 - [10/Jan/2024: 13: 55: 36 +0000] "Get /index.html http/1.1" 200 2326
192.168.0.2 - [10/Jan/2024: 12: 11: 06 +0000] "Get /index.html http/1.1" 200 1234
192.168.0.1 - [11/Jan/2024: 16: 45: 21 +0000] "Get /index.html http/1.1" 200 2326
0
Hint
There will be no clue here, decide for yourself!