Bash Script Array Size In Cpp