am using this code to count the remaining tasks in db and it has show that in list view
<p>am using this code to count the remaining tasks in db and it has show that too in list view,here is the code snippet am using,</p>

<pre><code>public void count(){
    SQLiteOpenHelper DATABASE_TABLE_REL = null;
    SQLiteDatabase mDb = DATABASE_TABLE_REL.getWritableDatabase();
    String count = "SELECT count(*) FROM DATABASE_TABLE_REL";
    Cursor mcursor = mDb.rawQuery(count, null);
    mcursor.moveToFirst();
    int icount = mcursor.getInt(0);
    System.out.println("NUMBER IN DB: " + icount);
}
</code></pre>

<p>please help me in this task,am not able to proceeding forward</p>
