Groups with specific number of centralizers