Code To Get Rec Id Count:
Create a Job :
static void Reccount(Args _args)
{
ReadingEntryTmp ReadingEntry;
int RecIdCount;
;
Select count(RecId) from ReadingEntry where ReadingEntry.bookno== "1000";
RecIdCount = ReadingEntry.RecId;
info(strfmt( "Total recId %1", RecIdCount));
}