Ard <--> Pi serial data transfer(unsolved)

i understand the words you used i however do not see where exactly you want the count. should it be like

sDA = serialDataAvail(fd);
         while (cChar != '>' ){
           if (x <= sizeof(recBuff)-1){ // read only 22 then pass to end and get the \0 null for 23?
             printf("Getting data!\n ");
             cChar = serialGetchar(fd);
             recBuff[x] = cChar;
             x++;
             }
          else if(sDA == 0){
             printf("Got no Data\n");
             }
            break;
            }