Removed record count function
Count fix