font or tikz to draw tally counting symbols (///)

Something like this?

\documentclass{article}
\usepackage{tikz}
\newcommand{\TCS}[2][]{\begin{tikzpicture}[baseline,#1]
\foreach \X [evaluate=\X as \Y using {int(mod(\X,5))}]in {1,...,#2}
{\ifnum\Y=0
\draw (\X*0.5ex+0.3ex,0) -- ++(-2.8ex,2ex);
\else
\draw (\X*0.5ex+0.3ex,0) -- ++(-0.3ex,2ex);
\fi}
\end{tikzpicture}}
\begin{document}
abc \TCS{3}\ def \TCS{7}
\end{document}

enter image description here

Or slanted to the right.

\documentclass{article}
\usepackage{tikz}
\newcommand{\TCS}[2][]{\begin{tikzpicture}[baseline,#1]
\foreach \X [evaluate=\X as \Y using {int(mod(\X,5))}]in {1,...,#2}
{\ifnum\Y=0
\draw (\X*0.5ex+0.3ex,0) -- ++(-2.2ex,1.8ex);
\else
\draw (\X*0.5ex+0.3ex,0) -- ++(0.3ex,1.8ex);
\fi}
\end{tikzpicture}}
\begin{document}
abc \TCS{3}\ def \TCS{7}
\end{document}

enter image description here


A different approach with bullcntr, that shows 'unusual' tally symbols: bullets!

But the number of symbols is limited to 9, so the symbols repeat.

\documentclass{article}


\usepackage{bullcntr}

\usepackage{pgffor}

\newcounter{bull}
\newcommand{\showbullcntr}[1]{%
  \setcounter{bull}{#1}%
  \bullcntr{bull}%
}
\begin{document}



\foreach \x in {1,...,200} {
  \pgfmathmod{\x}{5}
  \pgfmathint{\pgfmathresult}
  \edef\y{\pgfmathresult}
  \typeout{Current: \x and \y}
  \showbullcntr{\y}\ 
}

\end{document}

enter image description here


Using a macro and cancel package to definite a cut symbol. With mskip-4mu you can decrease or increase the space between the \slashs.

enter image description here

\documentclass{article}
\usepackage{mathtools}
\usepackage{cancel}
\newcommand{\thbacks}{\slash\mskip-4mu\slash\mskip-4mu\slash\mskip-4mu\slash}
\begin{document}
\[\slash, \quad \slash\slash, \quad \slash\slash\slash, \quad \bcancel{\thbacks}\]
\end{document}