What is the maximum number of IP addresses available?

In IPv4, which uses 4x bytes or 32 bits, there is a theoretical maximum of 4,294,967,296 IP addresses. In IPv6, which attempts to resolve the address shortage, uses 128bits, giving a maximum of ~ 340,282,366,920,938,463,463,374,607,431,770,000,000 addresses.