code: public static long queryNumEntries(SQLiteDatabase db, String table) {
          return queryNumEntries(db, table, null, null);
      }
docs: Query the table for the number of rows in the table.
  @param db the database the table is in
  @param table the name of the table to query
  @return the number of rows in the table