counts Chinese number place values in PHP