It depends if you have a self checkout at your library or your librarian checks it out at the issues desk but usually they do it at the issues desk. If you need help ask your local librarian.
Limits on books at libraries vary. Some permit only 2 or 3 while others allow 5 to 7. There isn't a rule or uniform policy (though there usually is across, say, a county library system).