fixed the test plan in count.t.
optimize: use table.new to preallocate space for the tables used in resty.core.regex.