What about<div> notmuch count query1; notmuch count query2; ...</div><div>all as a single command issued by notmuch-hello?  That should give exactly the same output, but eliminates the network round-trips without special support from count.  It would be interesting to see how this compares with your modified count and with the current round-trip-per-count approach.<br>
<br><div class="gmail_quote">On Sun, Nov 21, 2010 at 4:10 PM, Michal Sojka <span dir="ltr"><<a href="mailto:sojkam1@fel.cvut.cz">sojkam1@fel.cvut.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Then we could use something like the following to determine the counts</div>
of matched messages for saved searches:<br>
<br>
$ (echo $query1; echo $query2; ...) | notmuch count --stdin<br>
<count1><br>
<count2><br>
...<br>
<font color="#888888"><br>
-Michal<br>
</font></blockquote></div><br></div>