How many days he spent thus he could not tell , but at last he felt that the barrel was knocking against rocks , at which he was a little cheered , thinking it was probably land and not merely a reef in the sea .