The following code allows me to count the total number of visits that are registered by IP:
IP
$stmtIP = $con->prepare("SELECT COUNT(*) FROM