From string to int ?

hello guys i m new to shell scripting and can't find out why this structure is not right
I m guessing this happens because $LINESUM is a string . so how can i do this ?
i want my script to do so many loops as the number of the lines of one custom file.

#!/bin/bash

echo give me path name
read GIVENPATH
wc -l $GIVENPATH | cut -d" " -f1 $LINESUM
COUNTER=1
while [ $COUNTER -le $LINESUM ]; do
    echo $COUNTER
    ((COUNTER++))
done

just make it in this way

var=1
while [ $var -le `awk 'END{print NR}' $GIVENPATH` ] ; do
echo $var
var=$((var+1))
done

in your script, $LINSUM is seen as a parameter of cut.but you could make a for loop like this

read -p "give me path name: " GIVENPATH
$LINESUM=$(wc -l $GIVENPATH | cut -d" " -f1)
for COUNTER in $(seq $LINESUM); do
    echo $COUNTER
done

or shorter

read -p "give me path name: " GIVENPATH
for COUNTER in $(seq $(wc -l $GIVENPATH | cut -d" " -f1)); do
    echo $COUNTER
 done

thx for the help guys ! although i have one more similar question.
i want to know if the path leading to a file given by the user is valid, in other words if the file exists,so how exactly is the " if " structure for this ?

if [ find $GIVENPATH != ""]
then
    #my code ...
else
    echo "file not found"
fi
if [ -f $FILE ] ...
if [ -d $FOLDER ] ...

(Reference)

it also works this way

myvar=`find $GIVENPATH 2> /dev/Null`
if [ "$myvar" !=  "" ];then ...

thx guys,problem solved