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}

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}

hhcountpackage to be closest to this, but the package isn't on CTAN any longer, apparently – Dec 29 '18 at 17:11