Is to execute your SQL command. Returns the first column of the first row.
The result of intcont here is that your select statement finds the value of the first column in the first row of the record. Turn it into int. If your first line is id, you will find the id of the first record.