Php Count All Values In Array Literal Javascript