Mysql Fetch Array Count Function Matlab