Java Add Int Array Count Function In Pandas