Java tutorial
//package com.java2s; import android.database.DatabaseUtils; import android.database.sqlite.SQLiteDatabase; public class Main { public static final String TABLE_NAME = "wishlist_table"; public static SQLiteDatabase database; public static long count() { return DatabaseUtils.queryNumEntries(database, TABLE_NAME); } }