Get the current page number in WordPress Archive

Adding this code snippet to your WordPress theme’s archive.php template will display whatever the current page number is.