Fixed regex for DB key count