Count / in a regex with scan