There are only 21 million Bitcoins that can be mined but Bitcoin will never reach that cap due to the use of rounding operations in its codebase.