SELECT count(*)
FROM `Users`
WHERE `Login` LIKE 'a%'
$prepare_check = $mysqli->prepare("SELECT count(*) FROM table WHERE value = ?");
$prepare_check->bind_param('s', $value);
$rowsCount = null;
$prepare_check->bind_result($rowsCount);
$prepare_check->execute();
echo $rowsCount;