The people on thescripts expect that you exhaust all your normal resources first, which means google, books, instructors should be consulted first. But there is no requirement that you must have asked your instructor first, even if there was there would be no way for us to enforce this rule so it would be ridiculous to make it.
What I don't understand is, if your program can already calculate the number of occurrences then why are you not able to just put a print statement in a loop that prints a dash or dot for each occurrence?