%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                              %
%  Sample assignment template with counters - article.tex                      %
%  By Elana Hashman for CUMC -- CCEM 2013, July 2013                           %
%                                                                              %
%  Commercial use prohibited. For personal or non-commercial use only.         %
%                                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[10pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,bmargin=3cm,lmargin=2.75cm,rmargin=2.85cm}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{babel}

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathrsfs}

%% Automatic Problem Numbering
\newcounter{pblm}
\setcounter{pblm}{1}
\newcommand{\problem}{{\bf Problem \arabic{pblm}. }\stepcounter{pblm}}

\newcommand{\soln}{\emph{Solution.}}

\pagestyle{fancy}
\fancyhead[L]{Name Here}
\fancyhead[c]{Course XXX -- Assignment X}
\fancyhead[R]{\today}
\cfoot{\thepage\ of \pageref{LastPage}}
\setlength{\parindent}{0mm}
\setlength{\parskip}{3mm}
\setlength{\jot}{2mm}

\begin{document}

{ \bf \Large Course XXX -- Assignment X.}\\

{ \large Name Here \\[2mm]
Due: \today}

Acknowledgements: none?\\[2mm]


\problem

\soln\\

\problem

\soln

\end{document} 
