bug 898432 - use proper model for table count