Discussion:
http://stackoverflow.com/questions/1134289/cocoa-core-data-efficient-way-to-count-entities

In essence:
NSUInteger itemsCount = [managedObjectContext countForFetchRequest:fetchRequest error:&fetchError];

Advertisements