It beautifully works for the column counting, but I haven't gotten it to work with calculating a mean.