#Perl 5, 42 bytes

40 bytes plus two for the `-lF` flags (`-M5.01` is free): `perl -lF -M5.01 script.pl`



* `-lF` reads the input, removes the trailing newline, puts the remainder into the string `$_`, splits it up into characters, and puts that split into the array `@F`.
* `/#+/` finds `#`s in `$_` and sets <code>$&#x60;</code> equal to the stuff before it and `$'` equal to the stuff after it. <code>"$'$&#x60;"</code> is thus the number of times to rotate the array.
* Now for every element of the list from `1` to <code>"$'$&#x60;"</code>, we rotate the array (`pop` the last element and `unshift` it onto the beginning).
* After the loop exits, we `say` all the elements of the rotated array.