\documentclass[12pt]{article}
\usepackage[
a4paper,
margin=1in,
headsep=18pt, % separation between header rule and text
]{geometry}
\usepackage{xcolor}
\usepackage{fancyhdr}
\usepackage{microtype}
\newcommand{\statement}[1]{\medskip\noindent
\textcolor{black}{\textbf{#1}}\space
}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{
\textsc{\soptitle}\hfill\footnotesize
\textbf{\yourname}\\
\school\hfill\yourintent}
\fancyfoot[C]{\footnotesize\thepage}
\let\oldcenter\center
\let\oldendcenter\endcenter
\renewenvironment{center}{\setlength\topsep{0pt}\oldcenter}{\oldendcenter}
\newcommand{\wordcount}{
\begin{center}
\rule{0.75\textwidth}{.4pt}\\
{\footnotesize A statement of \numwords \ words}
\end{center}
}
\newif\ifcomments
\newcommand{\comment}[1]{}
\newcommand{\todo}[1]{\ifcomments\textcolor{red}{TODO: #1}\fi}
%%%%%%%%%%%%%%%%%%%%% Edit this section %%%%%%%%%%%%%%%%%%%%
\commentstrue
\newcommand{\soptitle}{Statement of Purpose}
\newcommand{\yourname}{My Name}
\newcommand{\yourintent}{Applicant for a PhD in The Thing}
\newcommand{\school}{The University}
\newcommand{\advisorfirstname}{FirstName}
\newcommand{\advisorlastname}{LastName}
\newcommand{\advisorfull}{Prof. \advisorfirstname \ \advisorlastname}
\newcommand{\advisor}{Prof. \advisorlastname}
\newcommand{\numwords}{\todo{number}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[
breaklinks,
pdftitle={\yourname - \soptitle},
pdfauthor={\yourname},
unicode,
colorlinks,
urlcolor={blue!80!black}
]{hyperref}
\begin{document}
\statement{Introduction} I want to work with \advisorfull. \advisor \ is good. \href{https://www.google.com}{Here} is my website.\footnote{Footnote}
\wordcount
\end{document}