initial attempt at a count decorator