(Auto)count

I've got a sheet with electrical sockets.

How can I count number of sockets in the sheet?

How can I automatically count number of sockets?