Changed name of bit counting function to better represent its function.