Result

AC

Duration

654ms

Code [DL]

for(s of(""+require("fs").readFileSync(0)).split(/\n/)){if(s)console.log((s+"a").slice(0,s.indexOf("__")).match(/\|/g).length);}

stdin

||__|___||
|_||||__|_
|||__|_|__
||_||_||__
||____||_|
||__|____|
|_|____|||
||_||||___
|_|_||||__
||||____|_
||______|_
|__|||||||
|_|___|_||
||_____|__
||_|_|||__
||||_|_|_|
|||||__|__
||__|_|__|
|___|_|___
|||||||_||
|_|_|___|_
|||_|||_|_
|__|_||||_
|_|_|||_||
|_________
|_|_|_|__|
||_|__|||_
|||_|___|_
||_||||||_
||_|||||__

stdout

2
5
3
6
2
2
2
6
6
4
2
1
2
2
6
7
5
2
1
9
3
7
1
7
1
4
3
4
8
7

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe390ec2c0 /* 7 vars */) = 0
12    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x55ef4e20cd40 /* 7 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55ef4e20cd30 /* 7 vars */) = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    +++ exited with 0 +++
16    +++ exited with 0 +++
14    +++ exited with 0 +++
15    +++ exited with 0 +++
18    +++ exited with 0 +++
13    +++ exited with 0 +++
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=8, si_stime=0} ---
10    +++ exited with 0 +++