i need two functions:

1. function that will put # line to # variable
for example the text is:

hello
my nick is ma622

so i want it:
function(2,nick)-----it will put "my nick is ma622" to the variable "ma622"
2. function that will count how much lines in the text box

10X