A wrapper for a native population count function