You will need to use a cursor combined with a keys_only query (for
efficiency) and keep
resubmitting the cursor until you get all the results.
If you plan to do this in appengine process rather than via the
remote_api you will probably need to use a chain of tasks
to achieve the result if you have a lot of entities.
In python it looks  something like the following (I don't do any work
with java on app engine)
def count(query):
   i = 0
   while True:
      result = query.fetch(1000)
      i = i + len(result)
      if len(result) < 1000:
          break
      cursor = query.cursor()
      query.with_cursor(cursor)
   return i
myquery = mymodels.MyModel.all(keys_only=True)
x = count(myquery)
Hope this helps
Rgds
T
----------
keakon
2010/4/10 Patrick Twohig <pat...@namazustudios.com>: