fixing return values for status
changing counter syntax per PR feedback